<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML 1.2" xml:lang="en">
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Site de Classificados - Fazer Pergunta ao Anunciante</title>
</head>

<c:import url="cabecalho.jsp"/>

<body>

<c:if test="${empty  associado}">
	<c:redirect url="logar.jsp"></c:redirect>
</c:if>


<c:if test="${!empty  erro}">
	<hr>
	Erro: ${erro}
	<hr>
</c:if> 
<h1>Pergunta ao Anunciante</h1>
<br />
<form action="controller?business=CadastroPerguntaLogic&sucesso=detalheanuncio.jsp&funcao=fim" method="POST" >
	
	<label>Digite o que deseja saber:</label>
	<input type="text" name="pergunta" value="${param.pergunta}"><br/>
	<br>
	<input type="hidden" name="business" value="AddAnuncioLogic"/>
	<input type="hidden" name="idAssociado" value="${idAssociado}"/>
	<input type="hidden" name="idAnuncio" value="${idAnuncio}"/>
	
	<input type="submit" value="Perguntar"/>
</form>
</body>
</html>
